<template>
  <div id="app">
    <Header />
    <!-- 路由出口 -->
    <router-view></router-view>
    <Footer v-show="$route.meta.show" />
  </div>
</template>

<script>
import Header from "./components/Header/index.vue";
import Footer from "./components/Footer/index.vue";
export default {
  name: "App",
  components: {
    Header,
    Footer
  },
  mounted() {
    // 获取三级分类列表数据
    this.$store.dispatch('categoryList');
  }
};
</script>

